/**
 * This file is part of the CAKIS project.
 * 
 * Copyright (c) 2009-2010 - Florian Arndt, Christian Kerl
 * 
 * @license GNU Lesser General Public License v3 <http://www.opensource.org/licenses/lgpl-3.0.html>
 * @since   31.03.2010
 * @version SVN: $Id: Range.java 52 2010-03-31 18:45:57Z christian-kerl@web.de $
 */
package org.cakis.server.model.repository;

/**
 * Range represents a range of items starting at an offset and
 * and containing a number of items.
 *
 * @author Christian Kerl
 */
public class Range {
    public final int Offset;
    public final int Count;

    /**
     * Creates the Range with Offset 0 and the given count.
     * 
     * @param count
     */
    public Range(int count) {
        this(0, count);
    }

    /**
     * Creates the Range with the given offset and the given count.
     * 
     * @param offset
     * @param count
     */
    public Range(int offset, int count) {
        super();
        Offset = offset;
        Count = count;
    }
}
